package com.xypower.service.Impl;

import com.xypower.mapper.CompanyInfoMapper;
import com.xypower.pojo.CompanyInfo;
import com.xypower.service.CompanyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类名:
 * 作者:XY
 * 创建时间:2021/11/14-14:08
 * 功能:
 */
@Service
public class CompanyInfoServiceImpl implements CompanyInfoService {
    @Autowired
    private CompanyInfoMapper companyInfoMapper;
    @Override
    public List<CompanyInfo> getAll() {
        return companyInfoMapper.selectByExample(null);
    }


    @Override
    public List<CompanyInfo> getAllByName(String compName, String ownerName) {
        return companyInfoMapper.getAllByName(compName,ownerName);
    }
}
